package com.googlecode.cswish.security.auth;


public class UserVisitRecord {
	
	public final static String ANONY_USER = "anony";

	// LoginUserId, 可为空
	private String userId;
	
	private String ip;
	
	private String path;
	
	// 访问时间
	private long visitTime;
	
	// 花费时长, 单位微秒
	private long spendTime;
	
	public UserVisitRecord() {
		
	}
	
	public UserVisitRecord(String userId, String ip, String path, long visitTime, long spendTime) {
		super();
		this.userId = userId;
		this.ip = ip;
		this.path = path;
		this.visitTime = visitTime;
		this.spendTime = spendTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public long getVisitTime() {
		return visitTime;
	}

	public void setVisitTime(long visitTime) {
		this.visitTime = visitTime;
	}

	public long getSpendTime() {
		return spendTime;
	}

	public void setSpendTime(long spendTime) {
		this.spendTime = spendTime;
	}
}
